<?php
	$home = '<li><a href="index.php">Home</a></li>';
	$products = '<li><a href="products.php">Products</a></li>';
	$forms = '<li><a href="forms.php">Forms</a></li>';
	$about = '<li><a href="about.php">About</a></li>';
	$feedback = '<li><a href="feedback.php">Feedback</a></li>';
	$search = '<li><a href="search.php">Search</a></li>';
	//$cart = '<li><a href="cart.php"></a>';
	
	$currentFile = $_SERVER["PHP_SELF"];
	$parts = explode('/', $currentFile);
	$page = end($parts);
	
	
	
	if ($page == 'index.php') {
		echo '<li>Home</li>';
	}
	else {
		echo $home;
	}
	
	if ($page == 'products.php') {
		echo '<li>Products</li>';	
	}
	else {
		echo $products;
	}
	
	if ($page == 'forms.php') {
		echo '<li>Forms</li>';	
	}
	else {
		echo $forms;
	}
	
	if ($page == 'about.php') {
		echo '<li>About</li>';	
	}
	else {
		echo $about;
	}
	
	if ($page == 'feedback.php') {
		echo '<li>Feedback</li>';	
	}
	else {
		echo $feedback;
	}
	
	if ($page == 'search.php') {
		echo '<li>Search</li>';	
	}
	else {
		echo $search;
	}
	
?>
